/*
 * Copyright (c) 2019-2020, https://api.iot.10086.cn/(https://gitee.com/cmcc-iot-api/iot-card-open-application/).
 */
package cn.iot.card.open.sim.warpper;

import cn.iot.card.open.constants.factory.ConstantFactory;
import cn.stylefeng.roses.core.base.warpper.BaseControllerWrapper;
import cn.stylefeng.roses.kernel.model.page.PageResult;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;
import java.util.Map;

/**
 * 物联卡综合信息基本信息-卡变更历史状态包装类
 *
 * @author 何光鑫
 * @date 20200327 14:11:50
 * @modify 20200327 何光鑫 v1.1.2.1 创建
 * @since v1.1.2.1
 */
public class GeneralHistoryStatusWrapper extends BaseControllerWrapper {

    public GeneralHistoryStatusWrapper(Map<String, Object> single) {
        super(single);
    }

    public GeneralHistoryStatusWrapper(List<Map<String, Object>> multi) {
        super(multi);
    }

    public GeneralHistoryStatusWrapper(Page<Map<String, Object>> page) {
        super(page);
    }

    public GeneralHistoryStatusWrapper(PageResult<Map<String, Object>> pageResult) {
        super(pageResult);
    }

    @Override
    protected void wrapTheMap(Map<String, Object> map) {
        map.put("descStatus", ConstantFactory.me().getCardDescStatus((String) map.get("descStatus")));
        map.put("targetStatus", ConstantFactory.me().getCardTargetStatus((String) map.get("targetStatus")));
    }
}
